package com.rainbow.commons.mybatis;

import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * @author Rainbow on 2018/6/27
 */

public interface ISuperService<T> extends IService<T> {

    Boolean beforeInsert(T entity);

    Boolean beforeInsertBatch(List<T> entityList);

    Boolean beforeUpdate(T current, T entity);

    Boolean beforeDelete(T current);

    void afterInsert(T entity);

    void afterInsertBatch(List<T> entityList);

    void afterUpdate(T entity);

    void afterDelete(T entity);

}
